// dlg.txt

begintalkscript;

variables;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(43,2) == 0;
	question = "special";
	text1 = "This winding road travels along the south edge of this mountain chain. Burned stretches of grass mark where numerous skirmishes have taken place between rogue creations and the forces of the Storm Plains.";
	text2 = "Right now, the Shapers seem to have lost control of this region. You don't see any signs of merchant caravans or patrols. However, being here does give you a strange, distracted feeling. You can sense a vague aura of magic in the air.";
	text3 = "You take a closer look at the road and see tracks. They are fairly faint. The creatures that made them must be quite light. That's why you didn't notice them at first. The creatures have two legs and long claws.";
	action = SET_SDF 43 2 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";

begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "You inspect this mine. Fortunately, it has not yet been activated. It just pulses quietly, awaiting the command or the puff of spores that will bring it to deadly life.";

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "Someone was salvaging bits of equipment from this old, rusty piece of Shaper equipment. He or she was doing this a safe distance from the nearby house.";

begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "The sign says:";
	text2 = "  Perikalia - Southwest";
	text3 = "  Kratoa-Kel - Northeast";
	text4 = "  Lerman's Pass - North";

begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This jug contains scraps of refuse, dried out and covered with dust. Nobody has been in here for weeks, at least.";
	text2 = "Picking through it, you notice an interesting note on a scrap of paper:";
	text3 = "_A baton may be infused with speed spores, and the energy within may be amplified and expended later. All that is required for the binding is the fang of a ..._";
	text4 = "The rest of the writing is obscured by a stain.";


begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "As you try to slip through this ruined customs checkpoint, you realize that you are being watched. A pair of glowing eyes watches you from the shadows.";
	text2 = "There is a drayk watching you. It gives you a toothy grin. It sizes you up and idly plays with a skull with one of its claws. You somberly note that the skull looks recently gnawed clean.";
	text3 = "_Hsssss. More prey. In my lair. No need to hunt. It comesss to Essren._";

begintalknode 11;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Prey? You think that you can kill me?";
	text1 = "_I am sure I can kill you. Soft fleshy thingsss like you are my prey. I might have let you go, but you have such pretty thingsss._";

begintalknode 12;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "You should let me pass, creation. I work for the rebels.";
	text1 = "_Hssss! I have no love for rebels. The drakonsss, they make me. They say they can command me. I will not be commanded. I will hunt, I will feed, I will build my hoard. Your words have not spared you._";

begintalknode 13;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Harm me, and the wrath of the Shapers will fall upon you.";
	text1 = "_Hahhhh! I would not have fled the drakonsss if I feared the Shapersss. The time of Shapersss is past. I live in their ruin. I feed and I build my hoard. They do not stop me._";

begintalknode 14;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "All right, creature. We will see how strong you are. (Attack.)";
	text1 = "Essren instantly lunges at you. You are amazed by how quickly it can move. It seems to have been altered to be stronger than an ordinary drayk.";
	action = END_TALK;
	
begintalknode 15;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "You were made by the drakons?";
	text1 = "_The drakonsss, they can Shape too. They see drayksss as their petsss. They play with them, command them, alter them to make a new army._";
	text2 = "_But we are not like worthlessss, weak servilesss. I took my power, and I fled._";

begintalknode 16;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Stay back, creation, or I will take over your mind.";
	text1 = "Essren nods and takes a step back, as if considering this. Then, before you have time to speak or concentrate, it lunges at you.";
	text2 = "You are amazed by how quickly it can move. It seems to have been altered to be stronger than an ordinary drayk.";
	action = END_TALK;

begintalknode 17;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Please let me go.";
	text1 = "_No begging. Just accept your fate. Nothing saved the othersss. Nothing will save you._";
	text2 = "Essren lunges at you. You are amazed by how quickly it can move. It seems to have been altered to be stronger than an ordinary drayk.";
	action = END_TALK;

begintalknode 18;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "I will not beg for my life. Let me go, or I will have to destroy you.";
	text1 = "_No. There is nothing you can do. Nothing saved the othersss. Nothing will save you._";
	text2 = "Essren lunges at you. You are amazed by how quickly it can move. It seems to have been altered to be stronger than an ordinary drayk.";
	action = END_TALK;

	
//

begintalknode 30;
	state = -1;
	nextstate = 30;
	condition = 1;
	question = "Balme";
	text1 = "There is a man hiding in this clearing. He looks like he has been out here for a while. He is unwashed and painfully skinny. He is surrounded by the tools of his trade: the equipment he used to place the mines you encountered back down the path.";
	text2 = "When he sees you, he raises his hands. You note that they are surrounded by a faint, red glow. He says, _I know you! I heard you were coming, just before I fled. Then I knew you would be sent to hunt me!_";
	text3 = "As you try to figure out what he's talking about, he pulls down the front of his robe. You can see on his chest the telltale lump left by Rawal's control tools. _I am Balme, and I will stay free. I work for Rawal no longer!_";
	text4 = "_I can't let a fellow servant escape and let him know where I am. I apologize, but you must die._";

begintalknode 31;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "You really think that it is right to kill me?";
	text1 = "_I will be freeing you from Rawal's service. I will be doing you a favor._";

begintalknode 32;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "How did you learn about me?";
	text1 = "_Trahan found me in Perikalia and told me that I had to watch you. But I had already had enough. I fled._";

begintalknode 33;
	state = 30;
	nextstate = -1;
	condition = 1;
	question = "You have betrayed Rawal. I'd better just kill you.";
	text1 = "He throws his arms wide. The clearing suddenly grows very warm. _Come, then! Either way, one of us will be free of his tyranny!_";
	action = END_TALK;
	code =
		set_attitude(55,10);
	break;
	
begintalknode 34;
	state = 30;
	nextstate = 31;
	condition = 1;
	question = "Actually, I'd rather that we both survive this meeting.";
	text1 = "Balme doesn't seem relieved. _I will not be hunted anymore. Now that one of Rawal's servants has seen where I am, Rawal will pull the information from you and the hunt will begin again._";
	text2 = "_I must find a new hiding space and make new defenses. If you found me, others can too. But I can't let you say that you have seen me. I will go. After you die._";

begintalknode 35;
	state = 31;
	nextstate = -1;
	condition = gf(100,8) > 0;
	question = "Rawal no longer has power over me. You are free to go. (Show your chest to Balme.)";
	text1 = "You show Balme where the control tool was removed. He is stunned. His hands drop to his sides. Soon, tears are running down his face.";
	text2 = "_Then there is ... There is hope. I can be free? The right Shaper can free me?_";
	text3 = "_I will stay here no longer. I can't stand this thing in me. I must be free. Thank you. I will go now. I will be rid of this thing, or I will die._ He grabs some food and clothes and runs from the clearing.";
	action = END_TALK;
	code =
		erase_char(55);
		award_party_xp(100,20);
		sf(43,1,2);
	break;
	
begintalknode 36;
	state = 31;
	nextstate = -1;
	condition = gf(100,8) == 0 && get_stat(20) < 7;
	question = "I don't obey Rawal anymore. You are free to go.";
	text1 = "You try to convince Balme that you are not working for Rawal. You are not convincing enough. He shakes his head sadly.";
	text2 = "_I hate that I have to do this. I am truly sorry. But rejoice! Soon, you will be free! This fate will harm your body less than service as Rawal's assassin will hurt your soul._";
	text3 = "As he moves to attack you, a single tear runs down his face.";
	action = END_TALK;
	code =
		set_attitude(55,10);
	break;
	
begintalknode 37;
	state = 31;
	nextstate = -1;
	condition = gf(100,8) == 0 && get_stat(20) >= 7;
	question = "I don't obey Rawal anymore. You are free to go.";
	text1 = "You try to convince Balme that you are not working for Rawal. You manage to be convincing enough. He nods.";
	text2 = "_I have committed enough crimes for Rawal. I will not kill another, not when there is a chance that I don't have to. I will let you live, and I must hope that you are telling the truth._";
	text3 = "_I will stay here no longer. I must stay free. I will go now. If Rawal is allowed to command me again, I will die._ He grabs some food and clothes and runs from the clearing.";
	action = END_TALK;
	code =
		erase_char(55);
		award_party_xp(100,20);
		sf(43,1,2);
	break;
	
begintalknode 38;
	state = 31;
	nextstate = -1;
	condition = 1;
	question = "I'd better do what Rawal wants. (Kill him.)";
	text1 = "Balme nods sadly. _Rawal brings corruption to all he touches. Now, his foul tools make us kill each other. Let us get this over with. At least, if I die, I will finally be free. And, if you live, I wish you fortune in finding your freedom._";
	text3 = "As he moves to attack you, a single tear runs down his face.";
	action = END_TALK;
	code =
		set_attitude(55,10);
	break;

	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 51;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 59;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 60;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 61;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 62;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 63;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

begintalknode 64;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
	
// 250

begintalknode 250;
	state = -1;
	nextstate = 250;
	condition = 1;
	question = "Trahan";
	text1 = "You meet another lone traveler, wandering through the wilderness. At first, his head is obscured by the cowl of his cloak. Then, when he gets close, he lowers it. You recognize him.";
	text2 = "It is Trahan, the servant of Rawal whom you met in Perikalia. At first, you wonder why he came all the way out here. Then he draws his blade.";
	text3 = "_You are a fool. You had the attention and protection of a full member of the Council, and you threw that away. You can still be useful, though. Rawal will reward me when he learns how I helped to slay a traitor._";
	
begintalknode 251;
	state = 250;
	nextstate = -1;
	condition = 1;
	question = "Wait. You don't have to do this.";
	text1 = "_Now you talk? You had a chance to convince me in Perikalia. You turned me aside. Your time for excuses is past ..._ He attacks.";
	action = END_TALK;
	
begintalknode 252;
	state = 250;
	nextstate = -1;
	condition = 1;
	question = "Please! Spare me!";
	text1 = "_Now you beg for your life. You should have been a little more humble in Perikalia. Now it is too late for you ..._ He attacks.";
	action = END_TALK;
	
begintalknode 253;
	state = 250;
	nextstate = -1;
	condition = 1;
	question = "I am no longer one of Rawal's slaves.";
	text1 = "_So you said before. That only makes me more confident that I am doing the right thing. Your death will only raise me higher in the master's esteem ..._ He attacks.";
	action = END_TALK;
